home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 6.2 / 2000-12_-_Disc_6.2.iso / Patches / age2upa.exe / CABFILE / FILESUSA.CAB / Data / gamedata.drs / Unnamed File 000033.bina < prev    next >
Text File  |  1999-11-11  |  5KB  |  260 lines

  1. ;start the pass
  2. (defrule
  3.     (difficulty <= easy)
  4.     (not (map-type fortress) )
  5. =>
  6.     (enable-wall-placement 2)
  7.     (disable-self)
  8. )
  9.  
  10. (defrule
  11.     (current-age > dark-age)
  12. =>
  13.     (set-goal wall-build NOTICE)
  14.     (enable-timer t-tower 1)
  15.     (disable-self)
  16. )
  17.  
  18. (defrule
  19.     (goal wall-build NOTICE)
  20.     (or
  21.         (or
  22.             (goal rush-control RUSHING)
  23.             (goal castle-attempt YES)
  24.         )
  25.         (or
  26.             (or
  27.                 (goal 1 10)
  28.                 (difficulty >= easy)
  29.             )
  30.             (map-type fortress)
  31.         )
  32.     )
  33. =>
  34.     (set-goal wall-build NO)
  35.     (disable-self)
  36. )
  37.  
  38. (defrule
  39.     (goal wall-build NOTICE)
  40. =>
  41.     (set-goal wall-build YES)
  42.     (disable-self)
  43. )
  44.  
  45. (defrule
  46.     (goal wall-build NO)
  47.     (or
  48.         (goal personality 1)
  49.         (goal personality 2)
  50.     )
  51.     (not (map-type fortress) )
  52. =>
  53.     (set-goal wall-build YES)
  54.     (disable-self)
  55. )
  56.  
  57. (defrule
  58.     (goal wall-build NO)
  59.     (current-age == imperial-age)
  60.     (nor 
  61.         (map-type fortress)
  62.         (goal castle-attempt YES)
  63.     )
  64. =>
  65.     (set-goal wall-build YES)
  66.     (disable-self)
  67. )
  68.  
  69. (defrule
  70.     (goal wall-build YES)
  71.     (goal wonder-attempt POSSIBLE)
  72. =>
  73.     (set-goal wall-build NO)
  74.     (disable-self)
  75. )
  76.  
  77. (defrule
  78.     (goal wall-build NO)
  79.     (building-type-count-total wonder > 0)
  80.     (not (map-type fortress) )
  81. =>
  82.     (set-goal wall-build YES)
  83. )
  84.  
  85. ;*****************************
  86. ;*****************************
  87. ;build walls
  88.  
  89. (defrule
  90.     (current-age == feudal-age)
  91.     (goal wall-build YES)
  92.     (can-build-wall-with-escrow 2 stone-wall-line)
  93.     (or
  94.         (can-afford-complete-wall 2 stone-wall-line)
  95.         (stone-amount > 125)
  96.     )
  97. =>
  98.     (release-escrow stone)
  99.     (build-wall 2 stone-wall-line)
  100. )
  101.  
  102. (defrule
  103.     (goal wall-build YES)
  104.     (can-build-wall-with-escrow 2 stone-wall-line)
  105.     (or
  106.         (can-afford-complete-wall 2 stone-wall-line)
  107.         (stone-amount > 300)
  108.     )
  109. =>
  110.     (release-escrow stone)
  111.     (build-wall 2 stone-wall-line)
  112. )
  113.  
  114. (defrule
  115.     (goal wall-build NO)
  116.     (building-type-count-total gate > 0)
  117.     (wall-completed-percentage 2 >= 75)
  118.     (wall-completed-percentage 2 < 100)
  119.     (can-build-wall-with-escrow 2 stone-wall-line)
  120. =>
  121.     (release-escrow stone)
  122.     (build-wall 2 stone-wall-line)
  123. )
  124.  
  125. (defrule
  126.     (goal wall-build YES)
  127.     (building-type-count-total gate < 4)
  128.     (can-build-gate-with-escrow 2)
  129. =>
  130.     (release-escrow stone)
  131.     (build-gate 2)
  132. )
  133.  
  134. (defrule
  135.     (goal wall-build YES)
  136.     (wall-completed-percentage 2 == 100)
  137.     (building-type-count-total gate == 0)
  138. =>
  139.     (delete-building stone-wall-line)
  140.     (set-goal wall-build NO)
  141. )
  142.  
  143. (defrule
  144.     (goal wall-build YES)
  145.     (wall-completed-percentage 2 == 100)
  146. =>
  147.     (set-goal wall-build NO)
  148. )
  149.  
  150. ;*****************************
  151. ;bombard towers
  152. (defrule
  153.     (can-build bombard-tower)
  154.     (not (goal wonder-attempt POSSIBLE) )
  155.     (or
  156.         (not (goal castle-attempt YES) )
  157.         (building-type-count-total bombard-tower < 2)
  158.     )
  159.     (or
  160.         (goal wall-build NO)
  161.         (timer-triggered t-tower)
  162.     )
  163. =>
  164.     (build bombard-tower)
  165. )
  166.  
  167. (defrule
  168.     (current-age == feudal-age)
  169.     (can-build watch-tower)
  170.     (or
  171.         (not (goal castle-attempt YES) )
  172.         (building-type-count-total watch-tower < 3)
  173.     )
  174.     (or
  175.         (goal wall-build NO)
  176.         (timer-triggered t-tower)
  177.     )
  178. =>
  179.     (build watch-tower)
  180. )
  181.  
  182. (defrule
  183.     (current-age == castle-age)
  184.     (can-build watch-tower-line)
  185.     (or
  186.         (not (goal castle-attempt YES) )
  187.         (building-type-count-total watch-tower-line < 6)
  188.     )
  189.     (not (research-available ri-guard-tower) )
  190.     (or
  191.         (goal wall-build NO)
  192.         (timer-triggered t-tower)
  193.     )
  194. =>
  195.     (build watch-tower-line)
  196. )
  197.  
  198. (defrule
  199.     (current-age == imperial-age)
  200.     (can-build watch-tower-line)
  201.     (nor
  202.         (can-build bombard-tower)
  203.         (goal wonder-attempt POSSIBLE)
  204.     )
  205.     (or
  206.         (not (goal castle-attempt YES) )
  207.         (building-type-count-total watch-tower-line < 9)
  208.     )
  209.     (nor
  210.         (research-available ri-guard-tower)
  211.         (research-available ri-keep)
  212.     )
  213.     (or
  214.         (goal wall-build NO)
  215.         (timer-triggered t-tower)
  216.     )
  217. =>
  218.     (build watch-tower-line)
  219. )
  220.  
  221. ; post-wonder watch towers -- go nuts!
  222. (defrule
  223.     (building-type-count-total wonder > 0)
  224.     (can-build-with-escrow bombard-tower)
  225. =>
  226.     (release-escrow gold)
  227.     (release-escrow stone)
  228.     (build bombard-tower)
  229. )
  230.  
  231. (defrule
  232.     (building-type-count-total wonder > 0)
  233.     (can-build-with-escrow watch-tower-line)
  234.     (nor
  235.         (research-available ri-guard-tower)
  236.         (research-available ri-keep)
  237.     )
  238. =>
  239.     (release-escrow wood)
  240.     (release-escrow stone)
  241.     (build watch-tower-line)
  242. )
  243.  
  244. (defrule
  245.     (timer-triggered t-tower)
  246.     (or
  247.         (can-afford-complete-wall 2 stone-wall-line)
  248.         (stone-amount > 500)
  249.     )
  250. =>
  251.     (disable-timer t-tower)
  252.     (enable-timer t-tower 60)
  253. )
  254.  
  255. (defrule
  256.     (timer-triggered t-tower)
  257. =>
  258.     (disable-timer t-tower)
  259.     (enable-timer t-tower 300)
  260. )